From: Jasper St. Pierre Date: Mon, 21 Oct 2013 21:51:50 +0000 (-0400) Subject: overviewControls: Add the parent's box into the allocation X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~3139 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=445011b1e5b1a271ba5410f11c63feca1ec8d139;p=gnome-shell.git overviewControls: Add the parent's box into the allocation Currently, this is always 0, but this will change when we introduce a custom layout manager into the story. --- diff --git a/js/ui/overviewControls.js b/js/ui/overviewControls.js index 8d189975a..1ca417870 100644 --- a/js/ui/overviewControls.js +++ b/js/ui/overviewControls.js @@ -66,9 +66,9 @@ const SlideLayout = new Lang.Class({ let alignX = (realDirection == SlideDirection.LEFT) ? (availWidth - natWidth) : 0; let actorBox = new Clutter.ActorBox(); - actorBox.x1 = alignX; + actorBox.x1 = box.x1 + alignX; actorBox.x2 = actorBox.x1 + child.x_expand ? availWidth : natWidth; - actorBox.y1 = 0; + actorBox.y1 = box.y1; actorBox.y2 = actorBox.y1 + availHeight; child.allocate(actorBox, flags);